package pta.期末训练集.第一个PTA上Java程序03;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            if (a<-1000||a>1000){
                System.out.println("|a|>1000");
            }else {
                System.out.println(a+b);
            }
        }
    }
}
